﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace RuleCode.Common.Permit
{
    public class Permission
    {
        public static int UpdateUserPermission(string userID,string companyID)
        {
            SqlParameter[] paras=new SqlParameter[2];
            paras[0] = new SqlParameter("@公司编码", companyID);
            paras[1] = new SqlParameter("@用户编码", userID);
            return   SqlHelper .Instance .ExecuteNonQuery (System.Data.CommandType .StoredProcedure ,"更新用户目录权限",paras );
        }
    }
}
